
import request from '@/plugin/axios'

// 获取分页列表
export function getemailtemplateparampage (params) {
  return request({
    url: '/chat/emailtemplateparam/page',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取列表
export function getemailtemplateparamlist (params) {
  return request({
    url: '/chat/emailtemplateparam/list',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取信息
export function getemailtemplateparaminfo (id) {
  return request({
    url: '/chat/emailtemplateparam/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addemailtemplateparam (data) {
  return request({
    url: '/chat/emailtemplateparam/save',
    method: 'post',
    data
  })
}

// 修改
export function updateemailtemplateparam (data) {
  return request({
    url: '/chat/emailtemplateparam/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchemailtemplateparam (params) {
  return request({
    url: '/chat/emailtemplateparam/delete',
    method: 'post',
    data: request.adornData(params, false)
  })
}

// 删除
export function delemailtemplateparam(id) {
  return request({
    url: '/chat/emailtemplateparam/delete/' + id,
    method: 'delete',
  })
}